<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%!
String decodePage(String action) {
	if (action == null){
		return "blanc.jsp";
	} else if (action.equals("updateDish")) {
		return "updatedish.jsp";
	}
	return "blanc.jsp";
}
%>

<% 
String act = request.getParameter("a");
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Online Cafe Administration</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.1.custom.js"></script>
</head>


<body>
	<div id="menu">
		<a href="GetAllDishes">All Records</a> 
		<a href="?a=updateDish">Update Dish</a>
		<a href="CreateDish">Create Dish</a>
		<a href="DeleteDish">Delete Dish</a>
	</div>

	<div id="content">
		<jsp:include page="<%= decodePage(act) %>" flush="true" />
	</div>

</body>
</html>
